/*
 * johnson
 *
 */

package com.lxd.pattern.factory.trainning.abstr;

import com.lxd.pattern.factory.trainning.Phone;
import com.lxd.pattern.factory.trainning.func.AppleFactory;
import com.lxd.pattern.factory.trainning.func.HuaweiFactory;
import com.lxd.pattern.factory.trainning.func.XiaomiFactory;

public class PhoneFactory extends AbstractFactory {
    public Phone getApple() {
        return new AppleFactory().getPhone();
    }

    public Phone getXiaomi() {
        return new XiaomiFactory().getPhone();
    }

    public Phone getHuawei() {
        return new HuaweiFactory().getPhone();
    }
}
